Add rudimentary ACPI support which allows a fully virtualized domain
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 15 May 2006 06:38:32 +0000 (07:38 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 15 May 2006 06:38:32 +0000 (07:38 +0100)
commitfe38e9e5622fb4763384a8493adca4f99634814d
tree9e557ddd90d9c00695b6c875029f0b04d673f5f3
parent4f08f939e2fd9bde37d430abeb1800b3753ffe7a
Add rudimentary ACPI support which allows a fully virtualized domain
to perform a poweroff via the S5 state.  This involves adding S5
information to the ASL file; adding ACPI I/O address processing to
qemu and modifying the FADT to point to these specific I/O addresses.
Note that this is a rudimentary implementation, which is expected
to allow growth over time.  Currently, only allow/detect writes
to one of the PM registers, even though the S5 package specifies
data for both.  Currently, this is sufficient for the kernels
tested. (Specifically, use of _PST, and _GST and other methods
are unnecessary and not implemented.)

Signed-off-by: Ben Thomas <ben@virtualiron.com>
tools/firmware/acpi/acpi_dsdt.asl
tools/firmware/acpi/acpi_dsdt.c
tools/firmware/acpi/acpi_fadt.h
tools/ioemu/hw/acpi.c [new file with mode: 0644]
tools/ioemu/hw/pc.c
tools/ioemu/target-i386-dm/Makefile